<template>
  <div id="energyMiddleRight">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span style="color:#5cd9e8">
          <icon name="chart-line"></icon>
        </span>
        <div class="d-flex">
          <span class="fs-xl text mx-2">30天系统能耗</span>
          <div class="decoration2">
            <dv-decoration-2 :reverse="true" style="width:5px;height:5.5rem;" />
          </div>
        </div>
      </div>
      <div>
        <energyMiddleRightChart :chart-data="centerData"/>
      </div>
    </div>
  </div>
</template>

<script>
import energyMiddleRightChart from "@/components/energy/middle/energyMiddleRightChart";
export default {
  props: {
    chartData: {
      type: Object,
      required: true
    }
  },
  data() {
    return {
      centerData: {
        type: Object,
        required: true
      }
    };
  },
  components: {
    energyMiddleRightChart
  },
  mounted() {},
  methods: {},
  watch: {
    chartData: {
      handler (newData ) {
          this.centerData = newData
      },
      immediate: true,
      deep: true
    }
  }
};
</script>

<style lang="scss">
#energyMiddleRight {
  padding: 0.3rem 0.2rem 0;
  height: 6.1rem;
  min-width: 3.75rem;
  border-radius: 0.0625rem;
  .bg-color-black {
    //height: 6.1875rem;
    border-radius: 0.125rem;
  }
  .text {
    color: #c3cbde;
  } //下滑线动态
  .decoration2 {
    position: absolute;
    right: 0.125rem;
  }
  .chart-box {
    margin-top: 0.2rem;
    width: 2.125rem;
    height: 2.125rem;
    .active-ring-name {
      padding-top: 0.125rem;
    }
  }
}
</style>
